from django.db import models

# Create your models here.
from django.db import models

#导入时间域
from django.utils import timezone

#基类
class Base(models.Model):

	#创建时间
	create_time = models.DateTimeField(default=timezone.now,null=True)

	class Meta:
		abstract = True


# 工单分类
class Cate(Base):
    id = models.AutoField(primary_key=True)
    name = models.CharField(max_length=32)
    uid = models.IntegerField(default=0)

    class Meta:
        db_table = 'cate'
